//
//  NSArray+Safe.h
//  AMHexin
//
//  Created by MacMini on 16/6/16.
//
//

#import <Foundation/Foundation.h>

@interface NSArray(Safe)

-(id)objectAtIndexSafe:(NSUInteger)index;

@end


@interface NSMutableArray (Safe)

- (void)replaceObjectAtIndexSafe:(NSUInteger)index withObject:(nonnull id)anObject;
- (void)removeObjectAtIndexSafe:(NSUInteger)index;
- (void)insertObjectSafe:(nonnull id)anObject atIndex:(NSUInteger)index;

@end
